package com.zzb.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张智博
 * @since 2022-02-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户编号")
    @TableField("uid")
    private String uid;

    @ApiModelProperty("角色编号")
    @TableField("role_id")
    private Integer roleId;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("原创数量")
    @TableField("original_num")
    private Integer originalNum;

    @ApiModelProperty("粉丝数")
    @TableField("fans_num")
    private Integer fansNum;

    @ApiModelProperty("关注数")
    @TableField("follows_num")
    private Integer followsNum;

    @ApiModelProperty("收藏数")
    @TableField("collection_num")
    private Integer collectionNum;

    @ApiModelProperty("获赞数")
    @TableField("likes_num")
    private Integer likesNum;

    @ApiModelProperty("评论数")
    @TableField("comment_num")
    private Integer commentNum;

    @ApiModelProperty("登录时间")
    @TableField("login_date")
    private Date loginDate;

    @ApiModelProperty("创建时间")
    @TableField("gmt_create")
    private Date gmtCreate;

    @ApiModelProperty("个人空间被访问数")
    @TableField("visit_num")
    private Integer visitNum;

    @ApiModelProperty("个性签名")
    @TableField("signature")
    private String signature;


}
